﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Example_bthd
{
    public abstract class Vehice
    {
        private String name;
        public Vehice()
        {
        }
        public String go()
        {
            return "";
        }
        public Boolean isEngineon()
        {
            return false;
        }
        public void startEngine()
        {
        }
        public void stopEngine()
        {
        }
        public String getName()
        {
            return "";
        }
        public interface ICargoTransport
        {
            public void loadCargo();
        }
    }
 public class Car : Vehice{
     public Car(){
     }
     public String go(){
         return "";
     }
 }
    public class Person{
        public ArrayList<Vehice> m_Vehice;
        public Person(){
        }
   }
    public void addVehice(Vehice v){
    }
    public class Truck : Vehice implements ICargoTransport{
        public Truck(){
        }
    }
    public String go(){
        return "";
    }
    public void loadCargo(){
    }
}


